package com.thinkgem.jeesite.modules.sys.utils;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.book.dao.BooksDao;
import com.thinkgem.jeesite.modules.book.entity.BkBooks;
import com.thinkgem.jeesite.modules.reader.dao.ReaderRolerDao;
import com.thinkgem.jeesite.modules.reader.entity.ReaderRoler;

import java.util.ArrayList;
import java.util.List;

/**
 * PublisherUtils
 * Created by hanxb on 2017/11/10.
 */
public class BookReaderUtils {
    private static ReaderRolerDao readerRolerDao = SpringContextHolder.getBean(ReaderRolerDao.class);

    public static List<ReaderRoler> getAllReadRoleList(){
        List<ReaderRoler> all = new ArrayList<>();
        all.add(new ReaderRoler("", "全部"));
        List<ReaderRoler> list = readerRolerDao.findAllList(null);
        all.addAll(list);
        return all;
    }
}
